<!DOCTYPE html> <!-- 要怪异模式才能用box-sizing:border-box-->
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>手风琴效果</title>
	<style type="text/css">
		*{
			margin: 0;
			padding: 0;
		}
		ul{
			width: 960px;
			height: 300px;
			margin: 100px auto;
			border: 1px solid black;
			overflow: hidden;
		}
		ul:hover li{
			width: 100px;
		}
		ul li:hover{
			width: 360px;
		}
		ul li{
			list-style: none;
			height: 300px;
			width: 160px;
			float: left;
			transition: width 2s ease-in-out;
		}
		ul li img{
			height: 300px;
		}
	</style>
</head>
<body>
	<ul>
		<li><img src="../images/12.jpg"></li>
		<li><img src="../images/3.jpg"></li>
		<li><img src="../images/5.jpg"></li>
		<li><img src="../images/7.jpg"></li>
		<li><img src="../images/9.jpg"></li>
		<li><img src="../images/10.jpg"></li>
	</ul>

</body>
</html>